﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Qianli.DirSir.Model;
using Qianli.DirSir.DAL;

namespace Qianli.DirSir.BLL
{
    public class UserBLL
    {
        UserDAL dal = new UserDAL();
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="u">前台传过来的用户集合</param>
        /// <returns></returns>
        public int Login(Userinfo u)
        {
            return dal.Login(u);
        }
        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="u"></param>
        /// <returns></returns>
        public int Register(Userinfo u)
        {
            return dal.Register(u);
        }
    }
}
